package com.winter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.winter.model.FinCpaper;
import com.winter.model.FinOnline;

@Repository
public interface FinCpaperMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FinCpaper record);

    int insertSelective(FinCpaper record);

    FinCpaper selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FinCpaper record);

    int updateByPrimaryKey(FinCpaper record);

    List<FinCpaper> queryPageList(@Param("direct") String direct, @Param("trade_mode") String trade_mode, @Param("fund_type") String fund_type, @Param("accept") String accept, @Param("sortName") String sortName, @Param("sort") String sort, @Param("key") String key);

    int updateCount(@Param("type") String type, @Param("countType") String countType, @Param("id") Long id);

    List<FinCpaper> queryUserNo(String userNo);

    FinCpaper selectByIdKey();
}